package com.example.zhaojianxu.signin.psychological.test

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

/**
 * create by @zhaojianxu on 2019/2/15
 */
class TestAdapter(fragmentManager: FragmentManager, val list: MutableList<Fragment>) :
    FragmentPagerAdapter(fragmentManager) {

    override fun getItem(p0: Int): Fragment {
        return list[p0]
    }

    override fun getCount(): Int {
        return list.size
    }

}